namespace go demo

struct addStoreReq{
    1:i32 id
    2:string storeName
    3:i32 type
    4:string uuid
    5:string identitionTime
    6:string createAt
    7:i32 status
}


struct deleteReq{
    1:i32 id
}

struct updateReq{
    1:i32 id
    2:string storeName
    3:i32 type
    4:string uuid
    5:string identitionTime
    6:string createAt
    7:i32 status
}

struct getStoreReq{
    1:i32 id
    2:string storeName
    3:i32 type
    4:string uuid
    5:string identitionTime
    6:string createAt
    7:i32 status
}

// 定义HTTP方法，通过hertz注解自动生成
service storeInterface{
    i32 addStore(1:addStoreReq req)  (api.post="/addstore")
    i32 deleteStore(1:deleteReq req) (api.get="/deletestore")
    i32 updateStore(1:updateReq req) (api.post="/updatestore")
    list<getStoreReq> getStore(1:string uuid) (api.get="/getstore")
}
